<?php if (!defined('THINK_PATH')) exit();?><!--<meta http-equiv="refresh" content="240" />-->
<link href="/Public/Home/css/sane.css"  type="text/css" rel="stylesheet"/>
<div class="c-main-left-content">
    <div class="con_title">
        <h3>用户管理</h3>
    </div>
    <div class="title_tip">
        <img class="record_icon" src="/Public/img/record_01.jpg"/>
        <span class="record_news">请完善个人信息，注意防止信息泄露。</span>
    </div>

    <div class="usermanage_box">
        <form action="<?php echo U('Home/Trade/userManageSave');?>" method="post" enctype="multipart/form-data">
            <div class="user_box">
                <span>用户名称：</span>
                <input type="text" name="u_name" value="<?php echo ($_userList['u_name']); ?>" placeholder="用户名称不能为空">
            </div>
            <div class="user_box">
                <span>用户邮箱：</span>
                <input type="email" name="u_email"value="<?php echo ($_userList['u_email']); ?>" placeholder="用户邮箱不能为空">
            </div>
            <div class="user_box">
                <span>用户类型：</span>
                <input type="text" value="<?php echo ($_userList['u_type_name']); ?>" readonly="" class="user_box3">
            </div>
            <div class="user_box">
                <span>用户年龄：</span>
                <input type="text" name="u_age" value="<?php echo ($_userList['u_age']); ?>"  onkeyup="value=this.value.replace(/\D+/g,'')">
            </div>
            <div class="user_box">
                <span>用户性别：</span>
                <select name="u_sex"  value="<?php echo ($_userList['u_sex']); ?>">
                    <?php if($_userList['u_sex'] == 1): ?><option value="1" selected>未设置</option>
                        <option value="2">女</option>
                        <option value="3">男</option><?php endif; ?>
                    <?php if($_userList['u_sex'] == 2): ?><option value="1">未设置</option>
                        <option value="2" selected>女</option>
                        <option value="3">男</option><?php endif; ?>
                    <?php if($_userList['u_sex'] == 3): ?><option value="1">未设置</option>
                        <option value="2" >女</option>
                        <option value="3" selected>男</option><?php endif; ?>
                </select>
            </div>
            <div class="user_box">
                <span>用户电话：</span>
                <input type="tel" name="u_tel" value="<?php echo ($_userList['u_tel']); ?>"  onkeyup="value=this.value.replace(/\D+/g,'')">
            </div>
            <div class="user_box">
                <span>用户地址：</span>
                <input type="text" name="u_address" value="<?php echo ($_userList['u_address']); ?>">
            </div>
            <div class="user_box">
                <span>用户邮编：</span>
                <input type="text" name="u_postcode" value="<?php echo ($_userList['u_postcode']); ?>" onKeyUp="if(this.value.length>6){this.value=this.value.substr(0,6)};this.value=this.value.replace(/[^\d]/g,'');" >
            </div>
            <div class="user_box1">
                <span>用户头像：</span>
                <img src="/Public/Uploads/<?php echo ($_userList['u_pic']); ?>" width="32%" height="10%" alt="未上传头像" >
                <input type="file" name="u_pic" >
            </div>
            <div class="user_box">
                <span class="user_span">注册时间：</span>
                <input type="text" value="<?php echo date('Y-m-d H:i:s',$_userList['u_regdate']);?>" readonly="" class="user_box3">
            </div>
            <div class="table-submit1">
                <input type="submit" value="提&nbsp;交">
            </div>
        </form>
    </div>
</div>